﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Omes.Services;

namespace FashionMural.Web
{
    public partial class NewDetail : System.Web.UI.Page
    {
        private IResourceService resourceservice;
        public string HtmlText { set; get; }
        public int CurrentIndex { set; get; }
        public int NextId { get; set; }
        public int PreId { set; get; }

        protected void Page_Load(object sender, EventArgs e)
        {
            resourceservice = new ResourceService();
            var itemstr = HttpContext.Current.Request.Params["t"];
            int itemid = 0;
            linkdetailph.Visible = true;
            if (int.TryParse(itemstr, out itemid))
            {
                HtmlText = resourceservice.GetLinkByid(itemid).Content;
            }
        }
    }
}